﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DBUtil.FastEntity.Annotations
{
    /// <summary>
    /// 两个表之间使用指定的列进行关联
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
    public class MapExtendTable_ByColumnDirectAttribute : Attribute
    {
        /// <summary>
        /// 当前类型的关联列,默认当前表主键
        /// </summary>
        public string OwnProp { get; set; }

        /// <summary>
        /// 关联表的关联列,默其他表主键
        /// </summary>
        public string ExtendTableCompareProp { get; set; }
    }
}
